<%@page import="com.xbk.jtable.ui.jForm"%>
<%@page import="com.xbk.jtable.ui.jTableUtil"%>
<%@page import="com.xbk.platform.DataMap"%>
<%@page import="com.xbk.util.StringUtil"%>
<%@page import="com.xbk.jtable.ui.Widget"%>
<%@page import="com.xbk.jtable.ui.jTable"%>
<%@page import="com.xbk.platform.DaoUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/Include/include.jspf"%>
<style type="text/css">
</style>
<%
	String sInterfaceID = request.getParameter("interfaceid");
	DaoUtil du = ConnectionMananger.getDaoUtil();

	jForm form = new jForm(du);
	form.addClass("ml20");
	form.setRelativeTable("DCP_INTERFACE_DEF");
	form.setKeyCols("INTERFACEID");
	form.setSql("SELECT * FROM DCP_INTERFACE_DEF WHERE INTERFACEID = '"+sInterfaceID+"'");
	form.setFormName("接口定义");
	form.createElement();
	form.hideSon("INTERFACEID");
	form.getSon("INTERFACE_TYPE").addClass("span2");
	form.getSon("UPLOAD_FREQ").addClass("span1");
	form.getSon("INTERFACENAME").addClass("span6");
	form.getSon("FIELD_COUNT").addClass("span1");
	
	du.close();
%>
</head>
<body>
<!-- top -->
<div id="top"><%@include file="/top.jsp" %></div>
<!-- content -->
<div id="jformContainer"></div>
</body>

<script type="text/javascript">
$(function() {
	$(function(){
		var form = new jDcp.web.Form();
		form.parse("<%=form.getHtml() %>");
		form.appendTo("jformContainer");
		form.setUrl("InterfaceDefinde.jsp?interfaceid="+form.getItemValue("INTERFACEID")+"&rand="+Util.getRandom());
		var option = {};
		option.text = "字段设置";
		option.cls = "btn btn-info";
		option.id = "editField";
		option.href = "InterfaceFields.jsp?interfaceid="+form.getItemValue("INTERFACEID")+"&rand="+Util.getRandom();
		form.addButton(option);		
	});
});
</script>
</html>